package com.kkang.ch1.javaconfig;

/**
 * 直接使用javaconfig set对象注入依赖
 *
 * @author yongk_liu
 **/
public class UseFunctionService {

    FunctionService functionService;

    public void setFunctionService(FunctionService functionService) {
        this.functionService = functionService;
    }

    public String SayHello(String word) {
        return functionService.sayHello(word);
    }

}
